[Slack Alert] Pinterest Disapproved ads

This automation runs every hour and checks whether any of the ads got disapproved. If that’s the case, you will get a Slack notification with the name of the ad and the link to the Ads Manager.

With this automation, get a Slack message for any disapproved ads.

Notion image

JSON Recipe

Import the automation recipe(s) into your own account. Don’t know how? Learn here.

Pinterest Disapproved ads
{"name":"[Slack Alert] Pinterest Disapproved Ads","description":"fb_disapproved_ads_slack_notifier_20220610","nodes":{"pinterest_fetch_ads_1":{"type":"pinterest_fetch_ads","logging_enabled":false,"x":451,"y":253,"group":"group_1","inputs":{"operational_status":{"export_enabled":true,"data":"RUNNING"}}},"if_v2_1":{"type":"if_v2","logging_enabled":false,"x":820,"y":312,"inputs":{"b":{"export_enabled":true,"data":[]},"condition":{"export_enabled":true,"data":"not_equal"}}},"for_each_v2_1":{"type":"for_each_v2","logging_enabled":false,"x":340,"y":313},"slack_notifier_v2_1":{"type":"slack_notifier_v2","logging_enabled":false,"x":977,"y":250,"group":"group_2","inputs":{"thread_ts":{"export_enabled":true}}},"start_1":{"type":"start","logging_enabled":false,"x":33,"y":289},"stop_1":{"type":"stop","logging_enabled":false,"x":34,"y":340,"inputs":{"stop":{"export_enabled":true}}},"delay_1":{"type":"delay","logging_enabled":false,"x":29,"y":94,"inputs":{"duration":{"export_enabled":true,"data":3600}}},"extract_1":{"type":"extract_v2","logging_enabled":false,"x":1227,"y":249,"group":"group_2","inputs":{"pointer":{"export_enabled":true,"data":"/id"}}},"slack_select_conversation_id_1":{"type":"slack_select_conversation_id","logging_enabled":false,"x":1052,"y":87,"inputs":{"conversation_id":{"title":"conversation_id","description":"Select a Slack Channel or Conversation"}}},"pinterest_select_ad_account_ids_1":{"type":"pinterest_select_ad_account_ids","logging_enabled":false,"x":326,"y":94,"inputs":{"ad_account_ids":{"title":"Ad Accounts","description":"Select one or more Pinterest Ad Accounts"}}},"patch_json_v2_1":{"type":"patch_json_v2","logging_enabled":false,"x":733,"y":251,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/0/text/text","value":":warning: The ad {{input.value/name}} is disapproved. \nAd created {{input.value/created_time}} "},{"op":"replace","path":"/1/elements/0/url","value":"https://ads.pinterest.com/advertiser/{{input.value/ad_account_id}}/reporting/ads/?name={{input.value/name}}"}]},"data":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":""}},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","text":"Open in Ads Manager"},"url":""}]}]}}},"patch_json_v2_2":{"type":"patch_json_v2","logging_enabled":false,"x":1020,"y":340,"group":"group_3","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/created_time","value":"{{input.value}}"}]}}},"for_each_v2_2":{"type":"for_each_v2","logging_enabled":false,"x":133,"y":223,"group":"group_2"},"append_1":{"type":"append","logging_enabled":false,"x":1494,"y":244,"group":"group_2","inputs":{"flatten":{"export_enabled":true},"schema":{"export_enabled":true,"data":"any"}},"outputs":{"list":{"title":"list_of_ads_already_appealed","description":"The resulting list with all inputs"}}},"format_timestamp_1":{"type":"format_timestamp","logging_enabled":false,"x":778,"y":341,"group":"group_3"},"extract_2":{"type":"extract_v2","logging_enabled":false,"x":540,"y":340,"group":"group_3","inputs":{"pointer":{"export_enabled":true,"data":"/created_time"}}},"patch_json_list_v2_1":{"type":"patch_json_list_v2","logging_enabled":false,"x":919,"y":249,"group":"group_1","inputs":{"value":{"export_enabled":true}}},"filter_v2_1":{"type":"filter_v2","logging_enabled":false,"x":681,"y":253,"group":"group_1","inputs":{"filters":{"title":"filters","description":"Filter that filters items by selected schema attributes","export_enabled":true,"data":[{"operator":"contains","pointer":"/review_status","value":"REJECTED"}]}}},"input_any_1":{"type":"input_any","logging_enabled":false,"x":909,"y":37,"group":"group_1","inputs":{"any":{"export_enabled":true,"data":[{"op":"add","path":"/root","value":{}},{"op":"move","path":"/root/name","from":"/name"},{"op":"move","path":"/root/id","from":"/id"},{"op":"move","path":"/root/ad_account_id","from":"/ad_account_id"},{"op":"move","path":"/root/created_time","from":"/created_time"},{"op":"move","path":"","from":"/root"}]}}}},"edges":["delay_1.delayed:for_each_v2_1.start","patch_json_list_v2_1.data_list:for_each_v2_2.items","pinterest_select_ad_account_ids_1.ad_account_ids:for_each_v2_1.items","extract_2.data:format_timestamp_1.timestamp","input_any_1.any:patch_json_list_v2_1.patches","for_each_v2_2.item:extract_2.data","format_timestamp_1.date_time:patch_json_v2_2.value","format_timestamp_1.formatted:patch_json_v2_2.patch","patch_json_v2_1.patched:slack_notifier_v2_1.send","extract_2.extracted:format_timestamp_1.format","for_each_v2_2.do:extract_2.extract","for_each_v2_2.item:patch_json_v2_2.data","patch_json_v2_1.data:slack_notifier_v2_1.blocks","patch_json_v2_2.patched:patch_json_v2_1.patch","patch_json_v2_2.data:extract_1.data","patch_json_v2_2.data:patch_json_v2_1.value","for_each_v2_2.done:for_each_v2_1.next","for_each_v2_1.done:delay_1.start","filter_v2_1.items:patch_json_list_v2_1.data_list","filter_v2_1.filtered:patch_json_list_v2_1.patch","slack_notifier_v2_1.sent:extract_1.extract","append_1.appended:for_each_v2_2.next","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_1.conversation_id","extract_1.data:append_1.item","extract_1.extracted:append_1.append","start_1.start:for_each_v2_1.start","pinterest_fetch_ads_1.ads:filter_v2_1.items","pinterest_fetch_ads_1.fetched:filter_v2_1.filter","for_each_v2_1.do:pinterest_fetch_ads_1.fetch","for_each_v2_1.item:pinterest_fetch_ads_1.ad_account_id","patch_json_list_v2_1.patched:if_v2_1.evaluate","patch_json_list_v2_1.data_list:if_v2_1.a","if_v2_1.true:for_each_v2_2.start","if_v2_1.false:for_each_v2_1.next"],"groups":{"group_2":{"title":"Send a Slack Message \u0026 append the list of checked ads","description":"","x":1056,"y":317,"inputs":["for_each_v2_2.start","for_each_v2_2.items","slack_notifier_v2_1.conversation_id"],"outputs":["append_1.list","for_each_v2_2.done"]},"group_1":{"title":"Get rejected ads","description":"","x":578,"y":317,"inputs":["pinterest_fetch_ads_1.fetch","pinterest_fetch_ads_1.ad_account_id"],"outputs":["patch_json_list_v2_1.patched","patch_json_list_v2_1.data_list"]},"group_3":{"title":"Cast Timestamp","description":"","x":379,"y":241,"group":"group_2","inputs":["extract_2.data","extract_2.extract","patch_json_v2_2.data"],"outputs":["patch_json_v2_2.data","patch_json_v2_2.patched"]}},"widgets":{"widget_1":{"title":"Slack channel","description":"Select a Slack Channel ","position":1,"input":"slack_select_conversation_id_1.conversation_id"},"widget_2":{"title":"Ad Accounts","description":"Select one or more Pinterest Ad Accounts","position":0,"input":"pinterest_select_ad_account_ids_1.ad_account_ids"},"widget_3":{"title":"Run Every","description":"The duration to delay the trigger (in Seconds)","position":3,"input":"delay_1.duration"}},"variables":{},"config":{"capture_inputs_enabled":false,"caching_enabled":false},"tags":[]}

How To

After creating the automation, make a few selections and then hit “Run Automation”. The check will happen by default every hour. If none of your ads are disapproved, you won’t get a Slack message.

Step 1

Select an Ad Account

Notion image

Step 2

Select a Slack Channel, in which you would like to receive the notifications

Notion image

Step 3

Define how often you want the automation to run

Notion image
Did this answer your question?
😞
😐
🤩

Last updated on January 16, 2023